//
//  NSString+FJAddition.m
//  PackagedHttpRequest(AF Version)
//
//  Created by app on 16/11/2.
//  Copyright © 2016年 cuit. All rights reserved.
//

#import "NSString+FJAddition.h"

@implementation NSString (FJAddition)
-(BOOL)isEmpty{
    if (!self) {
        return YES;
    }
    if (![self isKindOfClass:[NSString class]]) {
        return YES;
    }
    if ([self isKindOfClass:[NSNull class]]) {
        return YES;
    }
    if ([self isEqualToString:@"null"]) {
        return YES;
    }
    if ([self isEqualToString:@"(null)"]) {
        return YES;
    }
    if (self.length==0) {
        return YES;
    }
    if ([self stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]].length==0) {
        return YES;
    }
    return NO;
    
}
@end
